get_filename_component(CMAKE_DIR "${CMAKE_CURRENT_LIST_FILE}" PATH)
include("${CMAKE_DIR}/darwin.cmake")
set(CMAKE_SYSTEM_PROCESSOR "aarch64")

set(TARGET_TYPE "darwin-aarch64")

if("${CMAKE_SYSTEM_NAME}" STREQUAL "${CMAKE_HOST_SYSTEM_NAME}")
    if("${CMAKE_SYSTEM_PROCESSOR}" STREQUAL "${CMAKE_HOST_SYSTEM_PROCESSOR}" OR "arm64" STREQUAL "${CMAKE_HOST_SYSTEM_PROCESSOR}")
        set(CMAKE_CROSSCOMPILING OFF)
    endif()
endif()
